package com.atguigu.web.config;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * SpringMVC只扫描controller组件，可以不指定父容器类，让MVC扫所有。@Component+@RequestMapping就生效了
 */
@ComponentScan(value = {"com.atguigu.web",""},includeFilters = {
		@ComponentScan.Filter(type= FilterType.ANNOTATION,value = {Controller.class,EnableWebMvc.class}),}//只扫描controller组件和EnableWebMvc注解标注的扩展配置
, useDefaultFilters = false
)
//@EnableWebMvc
//@EnableWebMvc
public class SpringMVCConfig {
	//SpringMVC的子容器，能扫描的Spring容器中的组件


}
